package com.sky.dto;

import com.sky.entity.DishFlavor;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.web.bind.annotation.RequestParam;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

@Data
public class DishDTO implements Serializable {
    @NotNull(message = "id不能为空")
    private Long id;
    //菜品名称
    @NotNull(message = "菜品名称不能为空")
    private String name;
    //菜品分类id
    @NotNull(message = "菜品分类id不能为空")
    private Long categoryId;
    //菜品价格
    @NotNull(message = "菜品价格不能为空")
    private BigDecimal price;
    //图片
    @NotNull(message = "图片地址不能为空")
    private String image;
    //描述信息
    private String description;
    //0 停售 1 起售
    private Integer status = 1;
    //口味
    private List<DishFlavor> flavors = new ArrayList<>();

}
